package com.ruoyi.project.warehouseSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.warehouseSystem.mapper.CWarehouseMessageMapper;
import com.ruoyi.project.warehouseSystem.domain.CWarehouseMessage;
import com.ruoyi.project.warehouseSystem.service.ICWarehouseMessageService;

/**
 * 不同仓库的存储量查询Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-07-18
 */
@Service
public class CWarehouseMessageServiceImpl implements ICWarehouseMessageService 
{
    @Autowired
    private CWarehouseMessageMapper cWarehouseMessageMapper;

    /**
     * 查询不同仓库的存储量查询
     * 
     * @param id 不同仓库的存储量查询ID
     * @return 不同仓库的存储量查询
     */
    @Override
    public CWarehouseMessage selectCWarehouseMessageById(Long id)
    {
        return cWarehouseMessageMapper.selectCWarehouseMessageById(id);
    }

    /**
     * 查询不同仓库的存储量查询列表
     * 
     * @param cWarehouseMessage 不同仓库的存储量查询
     * @return 不同仓库的存储量查询
     */
    @Override
    public List<CWarehouseMessage> selectCWarehouseMessageList(CWarehouseMessage cWarehouseMessage)
    {
        return cWarehouseMessageMapper.selectCWarehouseMessageList(cWarehouseMessage);
    }

    /**
     * 新增不同仓库的存储量查询
     * 
     * @param cWarehouseMessage 不同仓库的存储量查询
     * @return 结果
     */
    @Override
    public int insertCWarehouseMessage(CWarehouseMessage cWarehouseMessage)
    {
        return cWarehouseMessageMapper.insertCWarehouseMessage(cWarehouseMessage);
    }

    /**
     * 修改不同仓库的存储量查询
     * 
     * @param cWarehouseMessage 不同仓库的存储量查询
     * @return 结果
     */
    @Override
    public int updateCWarehouseMessage(CWarehouseMessage cWarehouseMessage)
    {
        return cWarehouseMessageMapper.updateCWarehouseMessage(cWarehouseMessage);
    }

    /**
     * 批量删除不同仓库的存储量查询
     * 
     * @param ids 需要删除的不同仓库的存储量查询ID
     * @return 结果
     */
    @Override
    public int deleteCWarehouseMessageByIds(Long[] ids)
    {
        return cWarehouseMessageMapper.deleteCWarehouseMessageByIds(ids);
    }

    /**
     * 删除不同仓库的存储量查询信息
     * 
     * @param id 不同仓库的存储量查询ID
     * @return 结果
     */
    @Override
    public int deleteCWarehouseMessageById(Long id)
    {
        return cWarehouseMessageMapper.deleteCWarehouseMessageById(id);
    }
}
